@extends('layouts.app')
@section('title','Banner管理')
@section('content')

<!-- start: Content -->
<div class="row-fluid">		
	<div class="box span12">
		<div class="box-header" data-original-title="">
			<h2><span class="break"></span>轮播图Banner</h2>
		</div>
		<div class="box-content">
			<table class="table table-striped" >
				<thead>
					<tr>
				  		<th style='width:10%;'>
				  			<a href='{{ URL('app/banner/create') }}' class="btn btn-primary">添加</a>
				  		</th>
				  	</tr>
				  </thead>
			</table>
			<table class="table"> 
			<tbody>
				@foreach($banner as $bv)
					<tr>
						<td style='width:35%;'>
							<img src="{{ $bv->path }}"style='width:480px;height:193px;float:left;margin-right: 10px;'>
							<div style='float:left;'>
								<span style='float:left;font-weight:bold;'></span><br>
								<p style='float:left;width:225px;'>
								</p>
							</div>
						</td>
						<td class="center"  style='line-height:40px;'>
							<span>轮播图链接:</span>&nbsp;&nbsp;<input style='width:470px;' type="text" value='{{ $bv->href }}' readonly><br>
							<span>轮播图文本:</span>&nbsp;&nbsp;<textarea style='width:470px;height:155px;resize:none;' readonly>{{ $bv->commit }}</textarea>
						</td>
						<td class="center" style='text-align: center;line-height:40px;'>
							<a class="btn btn-primary" href='{{ URL("app/banner/$bv->id/edit") }}'>
								编辑
							</a><br>
							<form action="{{ URL("app/banner/delete") }}" method="POST">
								{{ method_field('DELETE') }}
								{{ csrf_field() }}
								<input type="hidden" name='bid' value='{{ $bv->id }}'>
								<button class="btn btn-danger" type='submit' >
									删除
								</button>	
							</form>
							
						</td>
					</tr>
				@endforeach	
			  </tbody>
		  </table>
		</div>
	</div><!--/span-->

</div><!--/row-->
<!-- end: Content -->
@stop